lunomobs:register_mob("lunomobs:ghost1", {
	mob_name="FANTASMA",
	type = "monster",
	hp_max = 4, --Padrão = 4
	xp_give = 10,
	--pos ={0.0,0.0,0.0},
	jump = true, 
	visual = "mesh",
	mesh="mobs_humanoid.b3d",
	textures = {"mobs_humanoid_ghost1.png"},
	collisionbox = {-0.3,-1.0,-0.3, 0.3,0.8,0.3},
	--visual_size = {x=8,z=10},
	visual_size= {x=1, y=1},
	makes_footstep_sound = true,
	view_range = 15,
	walk_velocity = 1,
	run_velocity = 3,
	damage = 2,
	--drops = {},
	drops = { 
		--{name="lunomobs:minecoin", chance = 10, min=1, max=3,}, --Probabilidade é de 1:10 (=10%) de cair entre 1 a 3 "minemoedas"
		--{name="default:gold_lump", chance = 20, min=1, max=3 ,},	--Probabilidade é de 1:20 (=5%) de cair entre 1 a 3 "punhados de ouro"
		{name="lunorecipes:magicdust", chance=5, min=1, max=1,}, --Probabilidade é de 1:5 (=20%) de cair entre 1 "po encantado"
	},
	--light_resistant = true,
	armor = 100,
	drawtype = "front",
	water_damage = 1, --1=Morte lenta
	lava_damage = 10,
	light_damage = 1,
	attack_type = "dogfight",
	animation = {
		speed_normal=15, speed_run=30,
		stand_start=0, stand_end=79,
		walk_start=0, walk_end=79,
		run_start=0, run_end=79,
		--walk_start=168, walk_end=187, --Anda
		--run_start=168, run_end=187, --Corre
		punch_start=189, punch_end=199, --Ataca Parado.
		--punch_start=200, punch_end=219, --Ataca correndo. (incorreto! Pois o npc so ataca paradop quando chega perto.)
		--punch_start=81, punch_end=161, --sentado
	},
	sounds = {
		random = "mobs_human_ghost_speak",
		attack = "sword_2",
		hit = "sword_2",
		die = "mobs_human_ghost_die", --Não existe som de morte! (mas eu fiz acontecer ^.^)
	},
	--follow = "lunomobs:minecoin",
	--FONTE: https://github.com/PilzAdam/mobs/wiki/API
})
--lunomobs:register_spawn(name, nodes, max_light, min_light, chance, active_object_count, max_height, spawn_func)
lunomobs:register_spawn("lunomobs:ghost1", {
	"default:dirt", "default:dirt_with_grass", "watershed:grass", 
	"default:grass_1", "default:grass_2", "default:grass_3", "default:grass_4", "default:grass_5", 
	"default:dirt_with_snow", "default:snowblock", "default:ice", 
	"default:sand", "default:desert_sand", "default:mossycobble"
	}, 10, -1, 7000, 4, 31000
)

minetest.register_craftitem("lunomobs:ghost1", {
	description = "Fantasma",
	groups = { mobs=1 },
	inventory_image = "mob_humanoid_ghost1.png",
	on_place = function(itemstack, placer, pointed_thing)
		if pointed_thing.above then
			minetest.env:add_entity(pointed_thing.above, "lunomobs:ghost1")
			if not minetest.setting_getbool("creative_mode") then itemstack:take_item() end
		end
		return itemstack
	end,
})

minetest.register_alias("ghost1"		, "lunomobs:ghost1")
minetest.register_alias("fantasma"	, "lunomobs:ghost1")

